package com.bob.usercenter.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bob.usercenter.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bob.usercenter.entity.request.QueryPage;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 12948
* @description 针对表【user】的数据库操作Service
* @createDate 2024-01-19 10:08:40
*/
public interface UserService extends IService<User> {

    /**
     * 添加账号
     */
    int register(String userAccount,String password,String checkPassword);

    /**
     * 登录
     */
    User login(String userAccount, String password, HttpServletRequest request);

    /**
     * 查询用户
     */
    List<User> queryUsers(String username,HttpServletRequest request);

    /**
     * 删除用户
     */
    boolean deleteUser(Long id,HttpServletRequest request);

    /**
     * 修改用户信息
     */
    int updateUser(User user);

    /**
     * 信息脱敏
     */
    User delSentitive(User selectOne);

    /**
     * 获取当前用户
     */
    User current(HttpServletRequest request);

    /**
     * 分页查询
     */

    List<User> queryUsersByPage(String current,String pageSize,String username, HttpServletRequest request);
}
